package com.alipay.util;

import java.util.Calendar;
import java.util.Date;

/**
 * @author Jun
 */
public class DateUtil {
    /**
     * 获取当前时间前几分钟
     */
    public static Date getMinutesAgo(int minute) {
        Calendar beforeTime = Calendar.getInstance();
        Calendar.getInstance().add(Calendar.MINUTE, minute);
        return beforeTime.getTime();

    }

    private DateUtil() {
    }
}
